﻿@using Bootstrap.Controllers
@model ILookup<string, FeatureViewModel>
<form method="POST">
    <div>
        <button type="submit">Save</button>
    </div>
    <div>
        @Html.AntiForgeryTokenOrchard()
        <h3>Features</h3>
        @foreach (var category in Model) {
        <fieldset style="margin-left: 1.7em; min-width: 300px; clear: none">
            <legend>@category.Key</legend>
            @foreach (var feature in category) {
            <div>
                @Html.CheckBox(feature.Name, feature.Enabled)
                <span>@feature.DisplayName</span>
            </div>    
            }
        </fieldset>
        }
    </div>
</form>